package com.tql.mall.merchant.client;

import com.tql.mall.model.merchant.ShopInfo;
import com.tql.mall.model.merchant.StockInfoQueryVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-merchant")
public interface MerchantFeignClient {

    /**
     * 校验库存
     *
     * @param stockInfoQueryVo
     * @return
     */
    @GetMapping("/merchant/api/inner/checkStock")
    public Boolean checkStock(StockInfoQueryVo stockInfoQueryVo);

    @ApiOperation(value = "根据id获取店铺信息")
    @GetMapping("/merchant/api/inner/getShopInfoEntity/{id}")
    public ShopInfo getShopInfoEntity(@PathVariable Long id);


}